<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>添加文章 - bjyadmin</title>
    <link rel="stylesheet" href="__ADMIN_STATICS__/bootstrap/dist/css/bootstrap.css" type="text/css" />
    <link rel="stylesheet" href="__ADMIN_STATICS__/animate.css/animate.css" type="text/css" />
    <link rel="stylesheet" href="__ADMIN_STATICS__/font-awesome/css/font-awesome.min.css" type="text/css" />
    <link rel="stylesheet" href="__ADMIN_STATICS__/simple-line-icons/css/simple-line-icons.css" type="text/css" />
    <link rel="stylesheet" href="__ADMIN_STATICS__/bootstrap-editable/css/bootstrap-editable.min.css" type="text/css" />
    <link rel="stylesheet" href="__ADMIN_STATICS__/app/css/font.css" type="text/css" />
    <link rel="stylesheet" href="__ADMIN_STATICS__/app/css/app.css" type="text/css" />
</head>
<body>
<div class="wrapper-md">
   <div class="panel panel-default">
    <div class="panel-heading">
        <a href="{:U('Admin/Index/welcome')}"><i class="fa fa-home"></i>&nbsp;首页</a>&nbsp;&gt;&nbsp;&nbsp;<a href="{:U('Admin/Rule/admin_user_list')}">管理员列表</a>&nbsp;&gt;&nbsp;&nbsp;修改管理员
    </div>
    <div class="table-responsive">
        <form class="form-horizontal" action="{:U('Admin/Rule/edit_admin')}" method="post"> 
            <input type="hidden" name="id" value="{$user_data['id']}">
            <div class="line line-dashed b-b line-lg pull-in"></div>
            <div class="form-group m-b-none m-l-none m-r-none">
                <label class="col-sm-2 control-label" for="input-id-1">管理组</label>
                <div class="col-sm-6">
                    <foreach name="data" item="v">
                        <label class="checkbox-inline i-checks">
                            <input type="checkbox" name="group_ids[]"  value="{$v['id']}" <in name="v['id']" value="$group_data"> checked="checked" </in> ><i></i>{$v['title']}
                        </label>
                    </foreach>
                </div>
            </div>
            <div class="line line-dashed b-b line-lg pull-in"></div>
            <div class="form-group m-b-none m-l-none m-r-none">
                <label class="col-sm-2 control-label">用户名</label>
                <div class="col-sm-6">
                    <input type="text" name="username" class="form-control" value="{$user_data['username']}"/> 
                </div>
            </div>
            <div class="line line-dashed b-b line-lg pull-in"></div>
            <div class="form-group m-b-none m-l-none m-r-none">
                <label class="col-sm-2 control-label">手机号</label>
                <div class="col-sm-6">
                    <input type="text" name="phone" class="form-control" value="{$user_data['phone']}"/> 
                </div>
            </div>
            <div class="line line-dashed b-b line-lg pull-in"></div>
            <div class="form-group m-b-none m-l-none m-r-none">
                <label class="col-sm-2 control-label">邮箱</label>
                <div class="col-sm-6">
                    <input type="text" name="email" class="form-control" value="{$user_data['email']}"/> 
                </div>
            </div>
            <div class="line line-dashed b-b line-lg pull-in"></div>
            <div class="form-group m-b-none m-l-none m-r-none">
                <label class="col-sm-2 control-label" for="input-id-1">密码</label>
                <div class="col-sm-6">
                    <input type="text" name="password" class="form-control" /> 
                </div>
            </div>
            <div class="line line-dashed b-b line-lg pull-in"></div>
            <div class="form-group m-b-none m-l-none m-r-none">
                <label class="col-sm-2 control-label" for="input-id-1">状态：</label>
                <div class="col-sm-6">
                    <div class="radio">
                        <label class="i-checks i-checks-sm">
                            <input type="radio" name="status"value="1" <if condition="$user_data['status'] eq 1">checked</if>>
                            <i></i>
                        允许登陆
                        </label>
                        <label class="i-checks i-checks-sm">
                            <input type="radio" name="status" value="2" <if condition="$user_data['status'] eq 2">checked</if>>
                            <i></i>
                            禁止登陆
                        </label>
                    </div>
                </div>
            </div>
            <div class="line line-dashed b-b line-lg pull-in"></div>
            <div class="col-sm-4 col-sm-offset-2 m-b">
                <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </form>
    </div>
</body>
</html>